# -*- coding:utf-8 -*-
'''
@author: xiaoming
@contact: lishihui0129@163.com
@time: 2017/6/29 10:34
@desc:
'''
import re
# import os
from myUtil import emailPattern,flagSplitPattern
# from mysqlHelper import close,insertSql,connectDB

def emailExtract(string):
    '''
    :param string: 待提取对象
    :return:提取结果
    '''
    res=re.findall(emailPattern,string)
    res=list(set(res))
    temp=[]
    for item in res:
        temp.append(item)
    return temp
